/*
 * @Author: lilongbiao guildwars@qq.com
 * @Date: 2024-03-24 22:13:57
 * @LastEditors: lilongbiao guildwars@qq.com
 * @LastEditTime: 2024-04-07 01:16:41
 * @FilePath: \work-vscode\vue3demo\demo\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createRouter, createWebHistory } from "vue-router";

const routes = [
  {
    path: "/",
    name: "login",
    component: () => import("../views/login.vue"),
  },
  {
    path: "/layout",
    name: "layout",
    component: () => import("../views/layout.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
